package qeb.handheldmedical.helper;

import java.util.Map;

/**
 * Created by 高义 on 2017/2/25.
 */

public class Urls {
	public static final String urlApp = "http://192.16.0.207/PdaForAndroid/hm.apk";
	public static final String urlAppVersion = "http://192.16.0.207/PdaForAndroid/ver.txt";
	private static String urlWebserice = "http://192.16.0.207/PDAWebservice/WebService/MEMRWebService.asmx";

	public static String webModels(String models, Map<String, String> params) {
		String strUrl = "";
		String strParams = "";
		strParams = StringUtil.HashMapToString(params);
		if (!strParams.equals("")) {
			strUrl = urlWebserice + "?op=" + models + "&" + strParams;
		} else {
			strUrl = urlWebserice + "?" + models;
		}
		return strUrl;
	}
}
